package com.zzj.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zzj.bean.CityBean;
import com.zzj.dao.CityMapper;
import com.zzj.service.CityService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class CityServiceImpl extends ServiceImpl<CityMapper, CityBean> implements CityService {
   @Resource
   private CityMapper cityMapper;

    /**通过省id 获得对应的市
     * @param pid
     * @return
     */
    @Override
    public List<CityBean> getCityByPid(Integer pid) {
        return cityMapper.getCityByPid(pid);
    }
}
